package com.yhgarden.bbs.service.api.common;

import com.yhgarden.bbs.model.response.BaseResponse;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface AdjunctService {

    BaseResponse fileUpload(MultipartFile[] importFiles, HttpServletRequest request) throws IOException;

    BaseResponse getImageByUrl(String imageurl, String name) throws IOException;

    BaseResponse fileDownload(HttpServletResponse response, String adjunctId, String widthHeight) throws IOException;

    BaseResponse fileRangeDownload(HttpServletRequest request, HttpServletResponse response, String adjunctId);

    BaseResponse fileBatchDownload(HttpServletRequest request, HttpServletResponse response, String adjunctIds) throws IOException;

}
